package com.springcloud.consumer.controller;

import com.springcloud.consumer.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: ZGS
 * @Date: 2019/5/29 14:56
 * @Description:
 */
@RestController
@RequestMapping("/testController")
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("/test2")
    public String test(){
        return testService.test1();
    }

}
